<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript">

var scopeVailable = 1;

function getbyName(){
	
	var obj=document.getElementsByName("testname")[0];
	
	obj.value = "byName";
}

function getbyID(){
	
	var obj=document.getElementById("testid");
	
	obj.value = "aaaaaa";
	//obj.type = "radio"
	console.info(obj.value);
}

function onLoad(){
 
	getbyID();
	console.info("hello world");
	
}


</script>
<title>UI basic</title>
</head>
<body onload="onLoad()">

<input id="testid" name="testname" type="text">
<input id="testid" name="testname1" type="text">
<input id="testid" name="testname2" type="text">
<input id="testid" name="testname3" type="text">
<p style="background:green">
	<input id="testid" name="testname4" type="text">
	<input id="testid" name="testname5" type="text">
	<input id="testid" name="testname6" type="text">
</p>
<input id="testid" name="testname7" type="text">
</body>
</html>